package com.alan.api.common;

import lombok.Data;
import lombok.ToString;

/**
 * Created by Alan on 2017/10/27.
 */
@Data
@ToString
public class ResponseBase<T> {

    /**
     * 返回码
     */
    private String code = "200";
    /**
     * 信息
     */
    private String msg = "成功";

    /**
     * 数据
     */
    private T data;

    public void setEnum(ResponseCodeEnum e){
        setCode(e.getCode());
        setMsg(e.getMsg());
    }

}
